package com.xteam.xnetworkdisk.common;
public class CurrentUser {
    private static ThreadLocal<Integer> user = new ThreadLocal<Integer>();
    public static Integer getCurrentUserId() {
        return user.get();
    }
    public static void setCurrentUserId(Integer userId) {
        user.set(userId);
    }
    public static void removeCurrentUserId() {
        user.remove();
    }
}
